package com.example.test.retrofit

import com.example.test.retrofit.UserBean
import retrofit2.http.*

interface ApiService {

    @GET("users/JavaNoober/repos")
    suspend fun getUserInfo(): List<UserBean>


    @POST("api/v1/auth/login")
    @FormUrlEncoded
    suspend fun login(
            @Field("userName") userName: String,
            @Field("pwd") pwd: String,
            @Field("type") type: String, ): BaseHttpBean<LoginBean>

}